package designPatterns.P07_装饰器模式_Decorator.P03_Shape;

import designPatterns.P07_装饰器模式_Decorator.P03_Shape.decorator.Red;

public class P01 {
    public static void main(String[] args) {
        Shape circle = new Circle();
        Shape rectangle = new Rectangle();
        Red redCircle = new Red(circle);
        Red redRect = new Red(rectangle);
        circle.draw();
        redCircle.draw();
        redCircle.setBorderColor();
        redRect.draw();
        redRect.setBorderColor();
    }
}
